import { EnvironmentProviders, importProvidersFrom } from '@angular/core';
import { NzIconModule } from 'ng-zorro-antd/icon';

// import {
//   MenuFoldOutline,
//   MenuUnfoldOutline,
//   FormOutline,
//   DashboardOutline,
//   UserOutline,
//   LockOutline
// } from '@ant-design/icons-angular/icons';
// const icons = [MenuFoldOutline, MenuUnfoldOutline, DashboardOutline, FormOutline, UserOutline, LockOutline];

// 一次性将所有Icon导入项目中
import * as antNzIcons from '@ant-design/icons-angular/icons';
const icons = Object.values(antNzIcons);

export function provideNzIcons(): EnvironmentProviders {
  return importProvidersFrom(NzIconModule.forRoot(icons));
}
